package setup

import (
	"context"
	"gitee.com/alex_li/ad-analysis/cmd/ad-words/process"
	"gitee.com/alex_li/ad-analysis/internal/etc"
)

func Setup(ctx context.Context) (err error) {
	process.Verbose = etc.Config.Web.Verbose
	var han []func(context.Context) error
	han = append(han,
		process.CountWords,
	)
	for _, h := range han {
		if err = h(ctx); err != nil {
			return
		}
	}
	return
}
